feat: Agent Teams orchestration — /team skill + teammate-aware preamble#105
Open
HMAKT99 wants to merge 2 commits intogarrytan:mainfrom
Open
feat: Agent Teams orchestration — /team skill + teammate-aware preamble#105HMAKT99 wants to merge 2 commits intogarrytan:mainfrom
HMAKT99 wants to merge 2 commits intogarrytan:mainfrom
Conversation
Makes every gstack skill work as a Claude Code Agent Team teammate: 1. Preamble: _IS_TEAMMATE detection, communication protocol, task claiming 2. /team skill: 7 pre-built team configurations (ship, review, launch, incident, diligence, audit, custom) 3. team/TEAMS.md: coordination reference with dependency graph and message formats 4. CLAUDE.md: Agent Teams documentation section Requires: CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 (user opts in)
62bc6c5 to
f04860c
Compare
Tier 3 evals (~$0.08/run) using Claude Sonnet as judge: - /team SKILL.md orchestration quality (spawn prompts, team configs) - TEAMS.md coordination reference quality (message formats, state locations) - Preamble teammate awareness actionability (mode switching) - Spawn prompt context sufficiency (enough info for autonomous teammates) Run: EVALS=1 bun test test/agent-teams-llm-eval.test.ts Requires: ANTHROPIC_API_KEY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
gstack has 11 specialized skills, but you can only use one at a time. When you need security AND risk AND code review on the same PR, you run them sequentially, copy-paste findings between sessions, and synthesize the output yourself. You are the message bus.
With Claude Code Agent Teams (experimental, v2.1.32+), teammates can message each other directly. This PR makes every gstack skill a first-class Agent Team teammate.
What this adds
Every skill now works in two modes — automatically
The
{{PREAMBLE}}(shared by all skills) now detects if it's running as a teammate:No per-skill changes needed. The preamble handles mode detection, communication protocol, task claiming, and teammate discovery.
/team— 7 pre-built team configurations/team ship/team review/team launch/team incident/team diligence/team audit/team customHow
/team diligenceactually worksteam/TEAMS.md— coordination referenceEvery teammate reads this to understand:
.gstack/directory map for cross-teammate file accessWhat's NOT in this PR
.claude/settings.jsoncommitted — users opt in with:{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }Integration
/teamskill follows standard.tmpl→SKILL.mdpipelineCLAUDE.mdupdated with Agent Teams section and dependency graphTest plan
bun test— 114 pass, 0 fail (723 assertions)bun run gen:skill-docs --dry-run— all 12 SKILL.md files FRESHEVALS=1 bun test test/agent-teams-llm-eval.test.ts— LLM quality evals (~$0.08/run)